home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swaga_c.zip
/
CMDLINE.SWG
/
0002_Get Command Line.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
499b
|
21 lines
{There are basically two ways of retrieving the command line. One way is to use
the ParamStr Variable: ParamStr(1) contains the first paramter, ParamStr(2)
contains the second parameter etc. Another way is to fetch the entire command
line String from your environment. This can be done as follows:
}
Program GetCommandLine;
Type
PCommandLine = ^TCommandLine;
TCommandLine = String;
Var
CommandLine : PCommandLine;
begin
CommandLine := Ptr ( PrefixSeg, $80 );
end.